/*
-------------------------------------------------------------------
BIE is Copyright 2001-2004 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------

*/
package tests.jd;

/*
 * LogTest.java
 *
 * Created on May 30, 2002, 11:13 AM
 */
import java.util.logging.*;

/**
 *
 * @author  jdepons
 * @version 
 */
public class LogTest {

    /** Creates new LogTest */
    public LogTest() {
    }

    public static void main(String[] args) {

            // Get a logger; the logger is automatically created if
            // it doesn't already exist
            Logger logger = Logger.getLogger("com.mycompany.BasicLogging");
    
            // Log a few message at different severity levels
            logger.severe("my severe message");
            logger.warning("my warning message");
            logger.info("my info message");
            logger.config("my config message");
            logger.fine("my fine message");
            logger.finer("my finer message");
            logger.finest("my finest message");
                         
    try {
        // Create an appending file handler
        boolean append = true;
        FileHandler handler = new FileHandler("my.log", append);
    
        // Add to the desired logger
        Logger logger = Logger.getLogger("com.mycompany");
        logger.addHandler(handler);
    } catch (IOException e) {
    }

    
    
    
    }
    
}
